<h2> Create Question </h2>
<% if @fail %>
  <div id="error_explanation">
    <h2><%= pluralize(@fail.length, "error") %> prohibited this quiz from being saved:</h2>
    <ul>
      <% @fail.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
    </ul>

  </div>
<% end %>
<%= form_tag(:action => :createquestion) do %>
  <fieldset>
    <legend>Create New Question</legend>
    <div>
      <label for="title" >Title:</label>
      <%= text_field_tag :title, @title%>
    </div>

    <div>
      <label for="body" >Question:</label>
      <%= text_field_tag :body, @body %>
    </div>
    <%if @quiz.isquiz%>
      <div>
        <label for="anstype" >Type:</label>
        <%= select_tag(:anstype, options_for_select([[@anstype],['MultipleChoice'],['MultiAnswer'], ['DropDown'],['ShortAnswer']])) %>
      </div>
    <%else%>
      <div>
        <label for="anstype" >Type:</label>
        <%= select_tag(:anstype, options_for_select([[@anstype],['MultipleChoice'],['MultiAnswer'], ['DropDown'],['ShortAnswer'],['Essay']])) %>
      </div>
    <%end%>



    <div>
      <%= submit_tag "Submit" %>
    </div>

  </fieldset>
<% end %>
